const { app: { api } } = useRuntimeConfig()

console.log(`proxy:${api}`);
export default defineEventHandler(async (event) => {
  if (event.node.req.url?.includes('/api')) {
    const {url} = event.node.req;
    const target = new URL(url, api)
    return proxyRequest(event, target.toString());
  }
});